package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-15
*/
@ApiModel(value="BlacklistBean对象", description="黑名单")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "blacklist", resultMap = "BaseResultMap")
public class BlacklistBean extends Model<BlacklistBean> {

    private static final long serialVersionUID = -794732866318758974L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "审批单类型，code:ApprovalFormStatus（人员、车辆）")
    private String type;

    @ApiModelProperty(value = "身份号码（身份证号、车牌号）")
    private String idNumber;

    @ApiModelProperty(value = "用户名（身份证所有人、车主）")
    private String userName;

    @ApiModelProperty(value = "源数据ID，基于哪条数据创建的黑名单，便于黑名单分页查询")
    private String sourceObjId;

    @ApiModelProperty(value = "操作类型,1为系统操作,2为人工操作")
    private String actionType;

    @ApiModelProperty(value = "原因")
    private String reason;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;
    
}
